package ui.frame.dialog.panel;


import javax.swing.JButton;
import static constants.GTextbookConstants.*;


//For the components responsible for events, our method for constructing them are
//using the same object in the progrmm.
public class LangButton extends JButton{
	
	public LangButton(String englishName, String chineseName, int language){
		super();
		if(language == English){
			setText(englishName);
			this.setFont(Button_English_Font);
		}
		if(language == Chinese){
			setText(chineseName);
			setFont(Button_Chinese_Font);
		}
			
	}


}